import { findHeadCategory } from '@/api/home'
export default {
  namespaced: true,
  state () {
    return {
      list: []
    }
  },
  mutations: {
    setList (state, palyload) {
      state.list = palyload
    }
  },
  actions: {
    async reviseList (ctx) {
      const res = await findHeadCategory()
      console.log(res)
      ctx.commit('setList', res.result)
    }
  }
}
